package com.itheima.travel.mapperExt;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface RouteMapperExt {

    /**
     *  根据route的主键，将attention_count字段值加1
     * @param routeId
     * @return
     */
    @Update("update tab_route set attention_count=attention_count+1 where id=#{routeId}")
    public int updateAttentionCountByPrimaryKey(@Param("routeId") Long routeId);
}
